{extend name='admin@public/content'}

{block name='content'}
<form onsubmit="return false;" action="" data-auto="true" method="post" class='form-horizontal layui-form' style='padding-top:20px'>

    <div class="form-group">
        <label class="col-sm-2 control-label">
            服务号：<br><span class="nowrap color-desc">尺寸109*109</span>
        </label>
        <div class='col-sm-8'>
            <input type="hidden" name="1[name]" value="ewm_f">
            <input type="hidden" name="1[title]" value="服务号">
            <img data-tips-image style="height:auto;max-height:80px;max-width:80px" src="{:setting('ewm_f') ?: '__STATIC__/theme/img/image.png'}"/>
            <input type="hidden" name="1[value]" onchange="$(this).prev('img').attr('src', this.value)" value="{:setting('ewm_f')}" class="layui-input">
            <a class="btn btn-link" data-file="one" data-uptype="" data-type="png,jpg,jpeg" data-field="1[value]" title="服务号二维码">上传图片</a>
            <p class="help-block">
                <input type="checkbox" {if setting('ewm_f','status')==1}checked{/if} name="1[status]" lay-skin="switch" lay-text="显示|隐藏">
            </p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">
            订阅号：<br><span class="nowrap color-desc"></span>
        </label>
        <div class='col-sm-8'>
            <input type="hidden" name="2[name]" value="ewm_d">
            <input type="hidden" name="2[title]" value="订阅号">
            <img data-tips-image style="height:auto;max-height:80px;max-width:80px" src="{:setting('ewm_d') ?: '__STATIC__/theme/img/image.png'}"/>
            <input type="hidden" name="2[value]" onchange="$(this).prev('img').attr('src', this.value)" value="{:setting('ewm_d')}" class="layui-input">
            <a class="btn btn-link" data-file="one" data-uptype="" data-type="png,jpg,jpeg" data-field="2[value]" title="订阅号二维码">上传图片</a>
            <p class="help-block">
                <input type="checkbox" {if setting('ewm_d','status')==1}checked{/if} name="2[status]" lay-skin="switch" lay-text="显示|隐藏">
            </p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">热线电话：<span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="hidden" name="3[name]" value="kefu_tel">
            <input type="hidden" name="3[title]" value="热线电话">
            <input type="tel" name="3[value]" title="请输入热线电话" required placeholder="请输入" value="{:setting('kefu_tel')}" class="layui-input">
            <p class="help-block"></p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">服务时间：<span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="hidden" name="4[name]" value="kefu_time">
            <input type="hidden" name="4[title]" value="服务时间">
            <input type="tel" name="4[value]" title="请输入服务时间" required placeholder="请输入" value="{:setting('kefu_time')}" class="layui-input">
            <p class="help-block"></p>
        </div>
    </div>
    <div class="hr-line-dashed"></div>

    <div class="col-sm-8 col-sm-offset-2">
        <div class="layui-form-item text-left">
            <button class="layui-btn" type="submit">保存</button>
        </div>
    </div>
    <script>
        form.render();
    </script>
</form>

{/block}